home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form SearchForm
- Caption = "Search Icons"
- ClientHeight = 3930
- ClientLeft = 1140
- ClientTop = 1515
- ClientWidth = 6540
- Icon = "SearchForm.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 262
- ScaleMode = 3 'Pixel
- ScaleWidth = 436
- Begin VB.CommandButton Command1
- Caption = "COPY"
- Height = 420
- Left = 5400
- TabIndex = 3
- Top = 1530
- Width = 870
- End
- Begin VB.FileListBox File1
- BackColor = &H00E0E0E0&
- ForeColor = &H00800000&
- Height = 2820
- Left = 2745
- Pattern = "*.ico"
- TabIndex = 2
- Top = 945
- Width = 2490
- End
- Begin VB.DirListBox Dir1
- BackColor = &H00E0E0E0&
- ForeColor = &H00800000&
- Height = 2340
- Left = 135
- TabIndex = 1
- Top = 1440
- Width = 2490
- End
- Begin VB.DriveListBox Drive1
- BackColor = &H00E0E0E0&
- ForeColor = &H00800000&
- Height = 315
- Left = 135
- TabIndex = 0
- Top = 945
- Width = 2490
- End
- Begin VB.Label Label2
- BorderStyle = 1 'Fixed Single
- Caption = "Label2"
- ForeColor = &H000000C0&
- Height = 555
- Left = 135
- TabIndex = 5
- Top = 360
- Width = 6270
- End
- Begin VB.Label Label1
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- Caption = "Label1"
- ForeColor = &H000000C0&
- Height = 285
- Left = 135
- TabIndex = 4
- Top = 45
- Width = 6270
- End
- Begin VB.Image Image1
- Height = 480
- Left = 5580
- Top = 945
- Width = 480
- End
- Attribute VB_Name = "SearchForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click() 'copy to temp
- On Error GoTo mkdir0
- MkDir IBpath$ & "\" & "_tempicons"
- IconBook.Dir1.Refresh
- mkdir0:
- FileCopy Label1.Caption, IBpath & "\" & "_tempicons" & "\" & File1.List(File1.ListIndex)
- Command1.Enabled = False
- IconBook.File1.Refresh
- End Sub
- Private Sub Dir1_Change()
- File1.Path = Dir1.Path
- Label2.Caption = "Icons in " & Dir1.Path & ": " & File1.ListCount
- Label1.Caption = Dir1.Path
- CopyEnabled
- End Sub
- Private Sub Dir1_Click()
- File1.Path = Dir1.List(Dir1.ListIndex)
- Label2.Caption = "Icons in " & File1.Path & ": " & File1.ListCount
- Label1.Caption = Dir1.List(Dir1.ListIndex)
- CopyEnabled
- End Sub
- Private Sub Drive1_Change()
- On Error GoTo Dri1
- Dir1.Path = Drive1.Drive
- File1.Path = Dir1.Path
- Label2.Caption = "Icons in " & Dir1.Path & ": " & File1.ListCount
- Label1.Caption = Drive1.Drive
- CopyEnabled
- Exit Sub
- Dri1:
- Temp$ = MsgBox("There has been an error !", vbCritical + vbOKOnly, "IconAlbum - System message")
- End Sub
- Private Sub File1_Click()
- If Right(File1.Path, 1) = "\" Then
- Image1.Picture = LoadPicture(File1.Path + File1.List(File1.ListIndex))
- Label1.Caption = File1.Path + File1.List(File1.ListIndex)
- Image1.Picture = LoadPicture(File1.Path + "\" + File1.List(File1.ListIndex))
- Label1.Caption = File1.Path + "\" + File1.List(File1.ListIndex)
- End If
- CopyEnabled
- End Sub
- Private Sub Form_Activate()
- Command1.Enabled = False
- End Sub
- Private Sub Form_Load()
- SearchForm.Move (Screen.Width - SearchForm.Width) / 2, (Screen.Height - SearchForm.Height) / 2
- Drive1.Drive = "c:"
- Dir1.Path = "c:\"
- File1.Path = "c:\"
- Label1.Caption = ""
- End Sub
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- Cancel = True
- SearchForm.Hide
- IconBook.Show
- End Sub
- Private Sub CopyEnabled()
- If File1.ListIndex = -1 Then
- Command1.Enabled = False
- Image1.Picture = LoadPicture("")
- Command1.Enabled = True
- End If
- End Sub
-